<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ChannelMoneyLog extends ApiBaseModel
{
    use HasFactory;
    protected $table = "channel_money_log";
    protected $fillable = [
        'channel_id',
        'money',
        'type',
        'before_money',
        'after_money',
        'create_by',
        'update_by',
        'created_at',
        'updated_at',
        'remark',
    ];

    public function channel()
    {
        return $this->belongsTo(CzChannel::class, 'channel_id', 'id');
    }
}
